package lab01;

/**
 * Created by lx on 2017/10/9.
 */
public class Test07 {
    public static void main(String[] args)
        {
            char a = '\0';
            System.out.println("please input a charactor ");
            try
            {
                a = (char) System.in.read();
            } catch (Exception e) {
                System.out.println(e);
            }
            switch (a)
            {
                case 'A':System.out.println("范围在85-100");
                    break;
                case 'B':System.out.println("范围在70-85");
                    break;
                case 'C':System.out.println("范围在60-70");
                    break;
                case 'D':System.out.println("范围在60分以下");
                    break;
            }
        }
    }
